package cn.hebutrun.oulabot.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zhaolong
 * @since 2022-09-07
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "数据库通用字段")
public class BaseEntity implements Serializable {

  @TableId(type = IdType.ASSIGN_UUID)
  @ApiModelProperty("主键")
  private String id;

  @TableLogic
  @TableField("is_del")
  @ApiModelProperty("是否删除")
  private Boolean del;

  @ApiModelProperty("备注")
  private String note;

  @ApiModelProperty("创建时间")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  private LocalDateTime updateTime;
}
